-- card: 5314 from stack: in.0b2 -- bmap block id: 0 -- flags: 4000 -- background id: 3155 -- name: ----- HyperTalk script ----- ----------------------------------------------------------------------- -- openCard ----------------------------------------------------------------------- on openCard global icon, icons put "^A Strung out ,^B on turbulence ,^C & Fear " into icons put 3 into icon set icon of card button "Example" to 272 + icon pass openCard end openCard ----------------------------------------------------------------------- -- doPopUp ----------------------------------------------------------------------- on doPopUp global icon, icons get PopUpMenu( icons, icon ) if it is not empty then put it into icon set icon of the target to 272 + it end if end doPopUp -- part 2 (button) -- low flags: 00 -- high flags: A004 -- rect: left=234 top=167 right=227 bottom=303 -- title width / last selected line: 0 -- icon id / first selected line: 275 / 275 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: Example ----- HyperTalk script ----- on mouseDown doPopUp end mouseDown -- part 3 (button) -- low flags: 00 -- high flags: 2000 -- rect: left=36 top=128 right=153 bottom=65 -- title width / last selected line: 0 -- icon id / first selected line: 21676 / 21676 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: New Button ----- HyperTalk script ----- on mouseUp show card field "ICON Table" end mouseUp -- part 1 (field) -- low flags: 81 -- high flags: 2004 -- rect: left=93 top=56 right=273 bottom=283 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 4 -- text size: 9 -- style flags: 0 -- line height: 12 -- part name: ICON Table ----- HyperTalk script ----- on mouseUp hide the target end mouseUp -- part contents for background part 10 ----- text ----- Icons To include an icon to the left of an item prefix the text of the item with a circumflex (^) followed by an ASCII character. The ordinal value of this character plus 208 is the resource id of the ICON to use. -- part contents for card part 1 ----- text ----- The table below lists some of the ASCII Charcater,ICON number combinations. ^A = 273 ^N = 286 ^1 = 257 ^B = 274 ^0 = 287 ^2 = 258 ^C = 275 ^P = 288 ^3 = 259 ^D = 276 ^Q = 289 ^4 = 260 ^E = 277 ^R = 288 ^5 = 261 ^F = 278 ^S = 290 ^6 = 262 ^G = 279 ^T = 291 ^7 = 263 ^H = 280 ^U = 292 ^8 = 264 ^I = 281 ^V = 293 ^9 = 265 ^J = 282 ^W = 294 ^K = 283 ^X = 295 ^L = 284 ^Y = 296 ^M = 285 ^Z = 297